package com.excilys.grails
import grails.test.*
class SongTests extends GrailsUnitTestCase {
    // ce bean est auto-injecté par Grails
    def grailsApplication

    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testProperty() {
        assertNotNull(grailsApplication)

        // grâce à Groovy, grailsApplication.config = this.grailsApplication.getConfig()
        def ourfirstProperty = grailsApplication.config.album.config.ourfirstconfig

        log.info ( ourfirstProperty ?: "Non trouvé :(")

        // assertEquals (grailsApplication.config  .album.config.ourfirstconfig,
        // "une configuration de test")
    }
}